<%@ page import="bidsanity.Bid; bidsanity.Customer; bidsanity.Listing" %>


<div ${hasErrors(bean: bidInstance, field: 'listing', 'error')} required>
    %{--<label for="listing">--}%
        %{--<g:message code="bid.listing.label" default="Listing" />--}%
        %{--<span class="required-indicator"></span>--}%
    %{--</label>--}%
    <g:hiddenField id="listing" name="listing.id" value="${listing.id}" />
    %{--<span>${listing.name}</span>--}%
    %{--<g:select id="listing" name="listing.id" from="${bidsanity.Listing.list()}" optionKey="id" optionValue="name" required="" value="${bidInstance?.listing?.id}" class="many-to-one"/>--}%
</div>

%{--<div ${hasErrors(bean: bidInstance, field: 'bidTime', 'error')} required>--}%
    %{--<label for="bidTime">--}%
        %{--<g:message code="bid.bidTime.label" default="Bid Time" />--}%
        %{--<span class="required-indicator"></span>--}%
    %{--</label>--}%
    %{--<g:hiddenField name="bidTime" value="${new Date()}"/>--}%
    %{--<span><g:formatDate date="${new Date()}" type="datetime" style="MEDIUM"/></span>--}%
    %{--<g:datePicker name="bidTime" precision="minute"  value="${bidInstance?.bidTime}"  />--}%
%{--</div>--}%

<div ${hasErrors(bean: bidInstance, field: 'amount', 'error')} required>
    <label for="amount">
        <g:message code="bid.amount.label" default="Amount" />
        <span class="required- indicator">*</span>
    </label>
    <g:field type="double" id="amount" name="amount" required="" value="${fieldValue(bean: bidInstance, field: 'amount')}"/>
</div>
